#include "process.hpp"

double total = 1024.0;
double speed = 1.0;

void DownLoad()
{
    double cnt = 0;

    while (cnt <= total)
    {
        FflushProcess(total, cnt);
        usleep(3000);
        cnt += speed;
    }

    printf("\nDownLoad %.2lf MB done\n", cnt);
}

int main()
{
    DownLoad();
    DownLoad();
    DownLoad();
    DownLoad();
    DownLoad();
    // process_v1();
    return 0;
}